using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(GameController))]
public class GameControllerEditor : UnityEditor.Editor
{
    public override void OnInspectorGUI()
    {
        var t = (GameController) target;
        GUILayout.Label("GameState: " + t.State);
        GUILayout.Label("Time: " + t.Time);
        t.OnGameStateChanged = EditorHelper.DisplayDelegate(t.OnGameStateChanged);
        EditorUtility.SetDirty(target);
    }
}